package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 来源 
 * @Author  yanluping@outlook.com
 * @Date 2020-07-13 14:41:51 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "来源")
@Table ( name ="Source")
public class Source  implements Serializable {

	private static final long serialVersionUID =  3155048951058223638L;

	/**
	 * 注册人员来源
	 */
	@ApiModelProperty(value = "注册人员来源")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Source_Id" )
	private Long sourceId;

	/**
	 * 点击率
	 */
	@ApiModelProperty(value = "点击率")
   	@Column(name = "hit" )
	private Long hit;

	/**
	 * 观众数
	 */
	@ApiModelProperty(value = "观众数")
   	@Column(name = "person" )
	private Long person;

	/**
	 * 注册ID
	 */
	@ApiModelProperty(value = "注册ID")
   	@Column(name = "Register_Id" )
	private Long registerId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 类型：1 组委会、2 展商、3 工作人员、4 观众、5 媒体
	 */
	@ApiModelProperty(value = "类型：1 组委会、2 展商、3 工作人员、4 观众、5 媒体")
   	@Column(name = "Type" )
	private Integer type;

	/**
	 * 来源名称
	 */
	@ApiModelProperty(value = "来源名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 注册通道
	 */
	@ApiModelProperty(value = "注册通道")
   	@Column(name = "channel" )
	private String channel;

	/**
	 * 地址
	 */
	@ApiModelProperty(value = "地址")
   	@Column(name = "Url" )
	private String url;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getSourceId() {
		return this.sourceId;
	}

	public void setSourceId(Long sourceId) {
		this.sourceId = sourceId;
	}

	public String getChannel() {
		return this.channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public Long getRegisterId() {
		return this.registerId;
	}

	public void setRegisterId(Long registerId) {
		this.registerId = registerId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public Long getHit() {
		return this.hit;
	}

	public void setHit(Long hit) {
		this.hit = hit;
	}
	public Long getPerson() {
		return this.person;
	}

	public void setPerson(Long person) {
		this.person = person;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"sourceId='" + sourceId + '\'' +
					"registerId='" + registerId + '\'' +
					"projectId='" + projectId + '\'' +
					"type='" + type + '\'' +
					"name='" + name + '\'' +
					"channel='" + channel + '\'' +
					"person='" + person + '\'' +
					"hit='" + hit + '\'' +
					"url='" + url + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
